<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title></title>
	</head>
	<body>
	</body>
	<script src="xhr1.0.js"></script>
	<script>
		(async ()=>{
			try {
				let res=await ajax({
					method: 'get',
					url: 'http://localhost:3000',
					body: {
						name: 'caicai',
						age: 20
					}
				});
				console.log(res);
			} catch(err) {
				console.log(err);
			}
			
		})();
		
		
	</script>
</html>
